import type { RouteRecordRaw } from "vue-router";
import Layout from "@/layout/Index.vue";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Home",
    component: Layout,
    meta: {
      title: "项目管理",
      icon: "si:projects-duotone",
      showInMenu: true,
      orderNum: 10,
    },
    redirect: "/project/list",
    children: [
      {
        path: "/project/list",
        name: "ProjectList",
        component: () =>
          import(/* webpackChunkName: "basic" */ "@/views/project/Project.vue"),
        meta: {
          title: "项目管理",
          showInMenu: false,
        },
      },
    ],
  },
];

export default routes;
